package com.hsnn.medstgmini.pro.base.model;


public enum GoodsSource {
	zbcg(1, "招标采购"), tpcg(2, "谈判采购"), zjcg(3, "直接采购"), ddsc(4, "定点生产"), bacg(5, "备案采购"),bjbx(6,"不竞不限");

	private int key;
	private String value;

	private GoodsSource(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public static String getName(int key) {
		for (GoodsSource ut : GoodsSource.values()) {
			if (ut.key == key) {
				return ut.value;
			}
		}
		return "";
	}

	public static GoodsSource goodsSource(int key) {
		for (GoodsSource ut : GoodsSource.values()) {
			if (ut.key == key) {
				return ut;
			}
		}
		return null;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}
